<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>

<b><?php echo ($title); ?></b>
<a href="?m=Query&c=Read&a=add">添加记录</a>
<table border="1">
    <?php if(is_array($users)): foreach($users as $key=>$vo): ?><tr>
            <td><?php echo ($vo["uid"]); ?></td>
            <td><?php echo ($vo["uname"]); ?></td>
            <td><?php echo ($vo["sex"]); ?></td>
            <td><?php echo ($vo["age"]); ?></td>
            <td>
                <a href="?m=Query&c=Read&a=del&uid=<?php echo ($vo["uid"]); ?>">删除</a>
                <a href="?m=Query&c=Read&a=edit&uid=<?php echo ($vo["uid"]); ?>">修改</a>
            </td>
        </tr><?php endforeach; endif; ?>
</table>
</body>
</html>